﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="AnyOffice.general.work_plan.type.index" %>

<%@ Reference Page="~/general/index.aspx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>工作项目类型设置</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		
		<script>
function delete_type(type_id)
{
    msg = '确认要删除该项目类型？';
 if(window.confirm(msg))
 {
  URL="delete.aspx?type_id="+type_id;
  window.location=URL;
 }
}
		</script>
	</HEAD>
	<body class="bodycolor" style="padding-top:0;" topmargin="5">
		<form id="Form1" method="post" runat="server">
          <div class="main_div">
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="tab_ti">
							新建项目类型
					</td>
				</tr>
			</table>
			<div align="center">
				<input type="button" value="新建项目类型" class="bnt_Add" onClick="location='new.aspx';"
					title="新建项目类型">
			</div>
			<br>
			<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
				<tr>
					<td background="/images/dian1.gif" width="100%"></td>
				</tr>
			</table>
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="tab_ti">
							管理项目类型
					</td>
				</tr>
			</table>
			<br>
			<asp:Repeater id="rptType" runat="server" EnableViewState="False">
				<HeaderTemplate>
					<table border="0" cellspacing="0" align="center" width="500" class="tab_pub" cellpadding="0">
						<tr>
							<td class="TableHeader" nowrap align="center" width="50">序号</td>
							<td class="TableHeader" nowrap align="center">名称</td>
							<td class="TableHeader" nowrap align="center" width="100">操作</td>
						</tr>
				</HeaderTemplate>
				<ItemTemplate>
			<tr class="TableLine1">
					<td align="center"><%#Eval("TypeNo")%></td>
					<td align="center"><%#Eval("TypeName")%></td>
					<td align="center">&nbsp; <a href="edit.aspx?type_id=<%#Eval("TypeId")%>">编辑</a>&nbsp;&nbsp; <a href="javascript:delete_type(<%#Eval("TypeId")%>);">
							删除</a>
					</td>
				</tr>
			</ItemTemplate>
			<AlternatingItemTemplate>
			<tr class="TableLine2">
					<td align="center"><%#Eval("TypeNo")%></td>
					<td align="center"><%#Eval("TypeName")%></td>
					<td align="center">&nbsp; <a href="edit.aspx?type_id=<%#Eval("TypeId")%>">编辑</a>&nbsp;&nbsp; <a href="javascript:delete_type(<%#Eval("TypeId")%>);">
							删除</a>
					</td>
				</tr>
			</AlternatingItemTemplate>
				<FooterTemplate>
					</table>
				</FooterTemplate>
				
			</asp:Repeater>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
            </div>
		</form>
	</body>
</HTML>
